package com.housediyadmin.events.newsEvents
{
	import com.housediyadmin.vo.News;
	
	import flash.events.Event;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/16
	 */	
	public class EditNewsEvent extends Event
	{
		public static const EDIT_NEWS:String = "editNews";
		
		public var news:News;
		public var goodsIds:Array;
		
		/**
		 * 修改一个News信息
		 * @param type 必选参数,EDIT_NEWS
		 * @param news：News 必选参数，一个News对象，不能忽视newsID
		 * @param goodsIds：Array,可为空
		 * 
		 */		
		public function EditNewsEvent(type:String, news:News, goodsIds:Array = null)
		{
			super(type);
			this.news = news;
			this.goodsIds = goodsIds;
		}
		
		override public function clone():Event
		{
			return new EditNewsEvent(type, news, goodsIds);
		}
	}
}